package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.domain.BaseEntity;
import java.util.Date;
import java.math.BigDecimal;

/**
 * Purchase表 sys_purchase
 * 
 * @author ruoyi
 * @date 2019-07-06
 */
public class Purchase extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** purchase id */
	private Integer purchaseId;
	/** art_no */
	private String artNo;
	/** sku */
	private String sku;
	/** Supplier Name */
	private String supplierName;
	/** Amount */
	private BigDecimal amount;
	/** Purchase Value */
	private BigDecimal purchaseValue;
	/** Freight */
	private BigDecimal freight;
	/** Tax */
	private BigDecimal tax;
	/** Total Value */
	private BigDecimal totalValue;
	/** Unit Price */
	private BigDecimal unitPrice;
	/** Order Date */
	private Date orderDate;
	/** Arrive Date */
	private Date arriveDate;
	/** Exp Date */
	private Date expDate;

	public void setPurchaseId(Integer purchaseId) 
	{
		this.purchaseId = purchaseId;
	}

	public Integer getPurchaseId() 
	{
		return purchaseId;
	}
	public void setArtNo(String artNo) 
	{
		this.artNo = artNo;
	}

	public String getArtNo() 
	{
		return artNo;
	}
	public void setSku(String sku) 
	{
		this.sku = sku;
	}

	public String getSku() 
	{
		return sku;
	}
	public void setSupplierName(String supplierName) 
	{
		this.supplierName = supplierName;
	}

	public String getSupplierName() 
	{
		return supplierName;
	}
	public void setAmount(BigDecimal amount) 
	{
		this.amount = amount;
	}

	public BigDecimal getAmount() 
	{
		return amount;
	}
	public void setPurchaseValue(BigDecimal purchaseValue) 
	{
		this.purchaseValue = purchaseValue;
	}

	public BigDecimal getPurchaseValue() 
	{
		return purchaseValue;
	}
	public void setFreight(BigDecimal freight) 
	{
		this.freight = freight;
	}

	public BigDecimal getFreight() 
	{
		return freight;
	}
	public void setTax(BigDecimal tax) 
	{
		this.tax = tax;
	}

	public BigDecimal getTax() 
	{
		return tax;
	}
	public void setTotalValue(BigDecimal totalValue) 
	{
		this.totalValue = totalValue;
	}

	public BigDecimal getTotalValue() 
	{
		return totalValue;
	}
	public void setUnitPrice(BigDecimal unitPrice) 
	{
		this.unitPrice = unitPrice;
	}

	public BigDecimal getUnitPrice() 
	{
		return unitPrice;
	}
	public void setOrderDate(Date orderDate) 
	{
		this.orderDate = orderDate;
	}

	public Date getOrderDate() 
	{
		return orderDate;
	}
	public void setArriveDate(Date arriveDate) 
	{
		this.arriveDate = arriveDate;
	}

	public Date getArriveDate() 
	{
		return arriveDate;
	}
	public void setExpDate(Date expDate) 
	{
		this.expDate = expDate;
	}

	public Date getExpDate() 
	{
		return expDate;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("purchaseId", getPurchaseId())
            .append("artNo", getArtNo())
            .append("sku", getSku())
            .append("supplierName", getSupplierName())
            .append("amount", getAmount())
            .append("purchaseValue", getPurchaseValue())
            .append("freight", getFreight())
            .append("tax", getTax())
            .append("totalValue", getTotalValue())
            .append("unitPrice", getUnitPrice())
            .append("orderDate", getOrderDate())
            .append("arriveDate", getArriveDate())
            .append("expDate", getExpDate())
            .toString();
    }
}
